<?php
namespace catchAdmin\basics\request;

use catchAdmin\basics\model\ExpenseType;
use catcher\base\CatchRequest;

class ExpenseTypeCreateRequest extends CatchRequest
{

    protected function rules(): array
    {
        // TODO: Implement rules() method.
        return [
            'code|费用代码' => 'require|unique:'.ExpenseType::class,
            'name|费用名称' => 'require|unique:'.ExpenseType::class,
        ];
    }

    protected function message()
    {
        // TODO: Implement message() method.
    }
}